
import Taro from '@tarojs/taro'

export function showInfo(msg, icon){
  if (!icon)
    icon = 'none';
  Taro.showToast({
    title: msg,
    icon,
    duration: 2000
  })
}

export function showWarn(msg, icon){
  showInfo(msg, icon);
}

export function showError(msg, icon){
  showInfo(msg, icon);
}
